package com.snifferx.test;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class GetDate {
	public static void main(String[] args){
		//SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd HHmmss");
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");  
		Date date = Calendar.getInstance().getTime();
		System.out.println("format output time :" + sdf.format(date));
		System.out.println("original output time:" + date);
	}
}
